package com.sucsoft.pdf.bean.mongodb;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author zhaowh
 * @Date 2020/10/19
 * Description
 */
@ApiModel("子目录信息")
public class ChildCatalog {

    @ApiModelProperty("目录Id")
    @Field("catalog_id")
    private String catalogId;

    @ApiModelProperty("目录名称")
    @Field("catalog_name")
    private String catalogName;

    @ApiModelProperty("页码")
    @Field("page_num")
    private Integer pageNum;

    @ApiModelProperty("目录层级")
    @Field("catalog_level")
    private Integer catalogLevel;

    @ApiModelProperty("目录在页面的位置：和页面顶部的距离")
    @Field("position")
    private double position;

    @ApiModelProperty("当前目录的子目录信息")
    @Field("child_catalog")
    private List<ChildCatalog> childCatalogList = new ArrayList<>();

    public String getCatalogId() {
        return catalogId;
    }

    public void setCatalogId(String catalogId) {
        this.catalogId = catalogId;
    }

    public String getCatalogName() {
        return catalogName;
    }

    public void setCatalogName(String catalogName) {
        this.catalogName = catalogName;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getCatalogLevel() {
        return catalogLevel;
    }

    public void setCatalogLevel(Integer catalogLevel) {
        this.catalogLevel = catalogLevel;
    }

    public double getPosition() {
        return position;
    }

    public void setPosition(double position) {
        this.position = position;
    }

    public List<ChildCatalog> getChildCatalogList() {
        return childCatalogList;
    }

    public void setChildCatalogList(List<ChildCatalog> childCatalogList) {
        this.childCatalogList = childCatalogList;
    }
}
